package com.yz.lzq.liwushuo.http;

import com.yz.lzq.liwushuo.jsonbean.HomeFragmentTabLayoutBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueBannerBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueFenLeiBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.HomeBoutiqueRecycleBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.christmas.ChristmasBean;
import com.yz.lzq.liwushuo.jsonbean.home.boutique.creditstopic.CreditsTopicBean;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by wanggang on 2016/11/14.
 */

public interface IApi {
    //获取Homefragment中Tablayout用到的标题
    @GET("channels/preset")
//    Call<List<HomeFragmentTabLayoutBean.DataBean.CandidatesBean>> getHomeFragmentTabLayoutBean();
    rx.Observable<HomeFragmentTabLayoutBean> getHomeFragmentTabLayoutBean(@QueryMap Map<String, String> map);

    //获取home页面中的banner的数据
    @GET("banners")
    rx.Observable<HomeBoutiqueBannerBean> getHomeBoutiqueBannerBean();

    //获取home页面中的FenLei的数据
    @GET("secondary_banners")
    rx.Observable<HomeBoutiqueFenLeiBean> getHomeJingPinFenLeiBean(@QueryMap Map<String, String> map);

    //获取home页面中的recycleView的数据
    @GET("{type}")
    rx.Observable<HomeBoutiqueRecycleBean> getHomeBoutiqueRecycleBean(@Path("type") String type, @QueryMap Map<String, String> map);

    //获取精品页面中gridView的圣诞模块的recycleView的数据
    @GET("{type}")
    rx.Observable<ChristmasBean> getChristmasRecycleBean(@Path("type") String type, @QueryMap Map<String, String> map);

    //获取精品页面中gridView的积分话题的数据的数据
    @GET("posts_v2/{type}")
    rx.Observable<CreditsTopicBean> getCreditsTopicBean(@Path("type") String type);

}
